<?php
	class ReponseTxtTrousPosition{
		private $idQuestion;
		private $idReponse;
		private $numMot;	
		
		public function __construct(){
			if(func_num_args() == 1)
			$this->hydrate(func_get_arg(0));
		}
		
		public function hydrate(array $donnees){
			foreach ($donnees as $key => $value){
				$method = 'set'.ucfirst($key);
				if (method_exists($this, $method)){
					$this->$method($value);
				}
			}
		}
		
		//GETTERS
		public function idQuestion(){return $this->idQuestion;}
		public function idReponse(){return $this->idReponse;}
		public function numMot(){return $this->numMot;}		


		//SETTERS
		public function setIdQuestion($newIdQuestion){$this->idQuestion = $newIdQuestion;}
		public function setIdReponse($newIdReponse){$this->idReponse = $newIdReponse;}
		public function setNumMot($newNumMot){$this->numMot = $newNumMot;}
		
	}
?>